// 提供会员中心-个人信息相关API函数
import request from '@/utils/request'
/* 获取个人信息 */
export const findPersonalInfo = () => {
  return request('/member/profile', 'get')
}
/* 修改个人信息 */
export const updatePersonalInfo = (formData) => {
  return request('/member/profile', 'put', formData)
}
/* 修改个人信息的头像 */
export const updateAvatar = (formData) => {
  return request('/member/profile/avatar', 'post', formData)
}
/* 获取兴趣分类 */
export const findInterest = () => {
  return request('/member/profile/interest', 'get')
}
/* 修改兴趣分类 */
export const updateInterest = (ids) => {
  return request('/member/profile/interest', 'put', ids)
}
/* 获取我的尺码 */
export const findSizeList = () => {
  return request('/member/profile/property', 'get')
}
/* 新增我的尺码 */
export const addSize = (form) => {
  return request('/member/profile/property', 'post', form)
}
/* 修改我的尺码 */
export const updateSize = (form) => {
  return request(`/member/profile/property/${form.id}`, 'put', form)
}
/* 删除我的尺码 */
export const deleteSize = (sizeId) => {
  return request(`/member/profile/property/${sizeId}`, 'delete')
}
